﻿using MongoDB.Bson;
using MongoDB.Bson.Serialization.Attributes;

namespace Demo.Net.API.Model.MongoModel
{


    public class TestMongoModel
    {


        [BsonId]
        [BsonRepresentation(BsonType.ObjectId)]
        public string Id { get; set; }

        [BsonElement("age")]
        public int age { get; set; }

       [BsonElement("name")]

        public string name { get; set; }

       [BsonElement("email")]
        public string email { get; set; }
    }
}
